added and completed hashes.rb