Made and tested DiffFunction.GradientF