The dog is herding sheep into a pen .