part 3 of exercise 7