Added exercise 2.21-2.23