added piping for hw4
hw4 cd works
hw4 cd now works with no peramiters