Modifying teacher class