Fleshed out the rest of the exercises from chapter 2.