Code for cat tracking prototype