refactoring to put presentation logic inside pet.rb