solve exercise 2.3