First version grade.js