Added sample code for pipes