added memory manager class