final version grader.js