How do the materials circulate in a flatworm?