Finish chapter 4 making titles dynamic