this should be
```ruby
@animals[animal.name] = animal
```
otherwise the function will look for an instance variable called 'new' within the animal.