part 2 for hw4