getLessonOfClass return only the lesson of the teacher.

add massage when pupil enter and leave the class.