third version of HW3