Create Scalar Valued Function