Update grade.cpp