Teaching a dog how to guard people and objects