Added code example for chapter 4.5