Complete HW3.1