An implementation of the Cat vs. Dog challenge