Complete exercises 1 & 2 for Chapter 3