Chapter 1, 2 and a part of 3