work for submit 3 HW3