Add methods in teacher and admin classes. Inheritance of these classes
was changed.