Changes to illustrate the principles of functional programming.