Added chapter 3 and figures