Part 3 of homework.