How to Train a Dog to Respect Boundaries