answer HW6 part1