Added chapter 6 and revised chapter 6 of terrain series