Added a lot of code for parsing and processing individual grades for each class.