getting grades given input: course