Removed mem.c and mem.h for redundancy