Chapter 2 (theory) done.