adding grading capability