How to train your dog in an affective way