Create gfun.cpp