Added MemoryManager class