Rabbit and Fox class working together