modified Semester.java