function of grading system