Teaching dogs to guard people and things