hw6 part1 and 2