add code for chapter 8, feature specs