Click templates and higher order functions.pdf link to view the file.