How to train your dog to protect its owner