Evolution of nervous systems
Jellyfish, comb jellies, and related animals have diffuse nerve nets rather than a central nervous system. In most jellyfish the nerve net is spread more or less evenly across the body; in comb jellies it is concentrated near the mouth. The nerve nets consist of sensory neurons that pick up chemical, tactile, and visual signals, motor neurons that can activate contractions of the body wall, and intermediate neurons that detect patterns of activity in the sensory neurons and send signals to groups of motor neurons as a result. In some cases groups of intermediate neurons are clustered into discrete ganglia.
Gastropoda
The nervous system of gastropods includes the peripheral nervous system and the central nervous system. The central nervous system consist of ganglia connected by nerve cells. It includes paired ganglia: the cerebral ganglia, pedal ganglia, osphradial ganglia, pleural ganglia, parietal ganglia and the visceral ganglia. There are sometimes also buccal ganglia.