Use an explicit Row class to manage the organization of rows, instead of hard coding possible grade values.