Added update semester code

Added update semester code to implement the update semester
functionality.