While the school of fish is elegantly twisting, turning, and dodging sharks in what looks like deliberate coordination, each individual fish is actually just following two basic rules that have nothing to do with the shark: one, stay close, but not too close to your neighbor, and two, keep swimmming.