Finished exercises from Chapter 3.