implemented naive grading