getMemory() implemented and tested