User defined functions in Equation