Corrected version of grader.js