hw2 part 2.3.8