finished grader.js