Teaching dog to guard object and people