Training dogs to protect people and things