added chapter 01 code form mwd book