modified grader.js for part 3 of the assignment