finishing up mem_man.c