Add sample method to RichPipe