simple pipe function example