exercise 10: grading (original amirite)