refactoring - stored student data inside of hashes and amended the printing method