Grading with arrays