You don't need to go through all of this trouble. You can just assign a new key a value in your existing hash.
```ruby
@pets[pet.name] = pet
```
will set the value of a key of the pet's name to be the pet.