Update grading.cpp