How memories are created and stored