revised grader.js for hw3 p3