An electric fence can control a dog's wandering