answer for exercise 02_10.