added functionality for teachers to enter and update grades for an assignment