HW4 part7-8 incomplete