How the wolf became the dog