Refactoring Hashed.rb