Did hw2 in one go.