Updated chapter 4 for the final release