Teaching dogs how to guard people and objects