Second part of chapter 5 finished