answer for exercise 02_05.