hw5 most of the way there