Adding letter-grading function for dashboard