add outline and code chapter 2