Adding a sample use of higher order functions