The logic of building the body plan