How to train your dog to pay attention