implement data_memory