add memory file for learning memory management