Solution to HW2 added.