getting grades for input: course, prof