Teacher->Students: Fixed errors with displaying only those semester related to the teacher
Teacher->Students: Cleaned up the function