Flatworms have a cephalized nervous system that consists of head ganglion, usually attached to longitudinal nerve cords that are interconnected across the body by transverse branches.
Source:http://animaldiversity.ummz.umich.edu/site/accounts/information/Platyhelminthes.html