hw4p2 complete and working