Completing exercises for Chapter 2.