hw6 to 8