Add solutions for exercise 4.13