using polynomial functions as coefficients of stochastic functions instead of a double.