created Grades type and moved GPA to method