Chapter 6 main example added