demo code for "Functional Programming for Production Quality Code"