One or both examples work.

For me, I had a dog who was stupidly smart as an escape artist. Problem is, she did it to escape and roll around to coat herself in goose shit.

I also had a guinea pig who would try to backflip out of his cage, he'd usually miss the small opening and hurt himself though.

And my current pet, which is my cat, is super freaking smart, instantly figured out the litter box with no trial or error. Just knew what to do. Due to the abusive home she came from she doesn't know how to play either, but damn she's figuring it out pretty quickly. She's still scared of some of her toys though.