added chapter 10 from mwd book