Revert "Changes to illustrate the principles of functional programming."

This reverts commit 8ac93a1f08f88d74be59eaeba19b04346aa9b7bc.