Add example of using and passing functions on the pipeline