demonstrate memory manager using memoryMap function