first draft of grader.js