answer for exercise 02_09.