included chapter 2 from the master thesis. just to take some ideas...