Obama talks about different professions in the speech, they aren't just limited to science or writing. Also he is not saying that you should take specific classes, but rather you should try and do your best in every class, because you never know which class may provide you with inspiration or the skills you need later in life.