Finished implementing MemoryManager