use hash instead of array to store students