What are the structures of the nervous system and their purpose?