It is important you keep in mind the terms relevancy verses optimized. A page can be relevant to a topic (main keyword) without being optimized for that keyword. When this is the case, you can focus on a long-tail keyword for a sub-page and have relevancy for the main keyword. You would then want to link to the main page with the main keyword from the sub-page.
In this case I would say that what you learned in your class is true, keep AT LEAST 50% of the pages RELEVANT to the main keyword, but not optimized to the main keyword.
The end grading factor though is, what works for your site? A lot of SEO is trial and error based upon bsaic principles. Sometimes you just have to try what your gut tells you to do and watch and see if that works, if not try the next idea.