15.5. Code for the figures of chapter “Text Output”