changed student array to hash