Sheepdogs, how do they work?

How do sheepdogs get sheep to move in the same direction? Scientists think they've found the answer.