Added teach method to Instructor class