for hw4 part2