I am putting together a site where there will be people

I am putting together a site where there will be people in a class that will need to have access to lab notes and documents that we build out on various pages. Only the people in each class will be able to access the docs and notes for that class.

We would want the public to also be able to view the public level pages.

I looked at member plugin - but not sure that is what we would need.

But was wondering if you would have any suggestions on the best way to accomplish this?

Thanks so much!