Chapter 12 finished

Update of all chapter 12 code