adding new exercise from chapter 9