Creating courses for a Particular class

Hi All,
Please guide me how i can do this

  1. I want to add few fields in registration I have idea how to do it
  2. I want to create a particular course for a class in Studio ( Lets take example i want to create a course for class 9 Students)
  3. I want to show courses according to class (I want to show a course to class 9 students only and other students can see their own course ) Please guide me how i can do this .

I am using Maple version 3 with Tutor on ubuntu 20.04 config is 8 gb ram 4 cpu core