Persistence pays off for dog in cone