Change teacherSaveMarks function