addded the access_animal method which returns animal object based on name (string) argument