final version of grader.js