Teaching dogs protect objects and people