(Chapter 15) : text sample source code.

for exercise 1.