hw4 finished and tested