Complete exercise 2.30