Chapter 2, untill exercise 2.21