Create automatic_mem.cpp