The story of a prisoner, a police officer and a four-legged mate