added a bit more functionality to code, creates a hash that can potentially reurn the key witht he highest value (th most frequently occuring)