hw3 part 1
hw3 exercise 2