Solution to HW7 added.