Modified dog.rb