pipe parsing complete; working on pipe function using tutorial code