Teaching a dog to pay attention