Added some of chapter 4 and more tree stuff