Created adding class for teacher but bug exists