finished HW3.1