Chapter 4 complete source