Chapter 4 Functional Programming examples.