algorithm for grading