Teaching dogs to guard objects and people