How to structure Discourse for an online course?

Sorry your question is unclear and seems unrelated.

You can create categories, categories can be secured using groups.

What @HappyGezim is asking for is a custom “whisper” feature within a topic, this is not on our roadmap.