exercise 1.44 smoothing