getting grades for input: course, prof, quarter