Solution to Students class with data members that are arrays