Again this is similar to the previous example, apart from this time, we want to get the animal object out of the clients num_pets hash (remember the animal object is the value of the hash the name is the key). 

    #Get the animal object

     selected_animal = shelter.clients[choice_client].pets[choice_animal]
    
    #Delete from the clients num_pets hash
    shelter.clients[choice_client].pets.delete(choice_animal)
    #Putting it back in the animal hash
     shelter.animals[selected_animals.name] = animal