first working version of grader.js