answer for exercise 02_07.