modify the class and added class's id, create object cast helper in each class, modified teacher and student's uniqueness check