final HW4 work