a dog can be trained