adds exercise 2.7 and 2.9