Add getGrades method and test