This is my answer for HW 2.