refactor contact.rb