HW2 Exercise 2