implemented DataMemory