retrieve class name and course name for teacher profile