Add solutions for exercise 1-20, 1-21 and 1-22