calculating the sum of gradePoints)