revised chapter 2 according to feedback by Sami