Part 3 of homework 6.