Call to undefined function g()