Class for DataMemory and Test for DataMemory