Grades assignment for CPP 1