Added functionality to memory manager and multiple programs