Get grade using a function 'getGrade'