refactored the student and teacher models to inherit from person