 This research has uncovered the mechanisms behind the encoding of memories in the neural network of C. elegans worms. It found that sensory neurons play a key role in storing both positive and negative memories while interneurons integrate these signals and communicate them to other neurons. Additionally, this study revealed that the integration of these signals leads to the formation of a widespread memory, suggesting that it is the network's plasticity that allows for the storage of different experiences.