Created GradesMatrix class