Solution to arrayed data member in Students class