Added Chapter 9: 9.R & solution