Created Function base class, which both XiFunc and XiLambda now extend.