hw2 part 2.3.4