add exercise a for chapter 16