Solutions to HW 2.pdf