Thesis chapter 4 finished