Updated Teacher.java class to specifications.