Electrical stimulation of these synapses releases a chemical called serotonin and this, in turn, somehow stimulates the manufacture of the memory-forming proteins.
Just as importantly, the resulting nerve cells were able to conduct electrical impulses and could form the specialised junctions called synapses, by means of which nerve cells talk to each other.