Implementation of grader.js for HW3 part 3