implement storage.c and the MEM module has been finished