Implement ch05/the_functional_programmers_toolbox examples