Change CourseSession to encapsulate class variable with class methods