displaying average of grades for each subject