Further refactoring. Using hashes to store student data.