Doing HW3.2