mem_fn.cpp added