This is how the brain creates lasting memories