Fix the cat exercise, thanks to Stefan Schroede