an example of using pipes