Answer to question 6 for HW 2