You used the definite article ("the smoothing example") like we're supposed to know what your code looks like.
We don't.