Final version hw3 of grader.js