Finishing the exercises from Chapter 10