added chapter 5 partly