added MemoryManager constructor and fields