added missing part of chapter 4