HW4_2d completed