Added first part of chapter 5