setup framework for hw7 and added sample code for pipe