add 3 legged dog code