second version of grader.js