finished HW4a