Add examples for higher order functions and invocations