Added useful functional programming snippets from JS Allongé