This is my answer for HW2.