How to get a cat out of a tree