added the caged cat example for c++. This one was a bit more challenging than the last one.