creation of animal.rb, an animal class