Solutions for exercise 2.7
Solutions for exercise 2.8