Final working version for grader.js