using printf

to make the text-output code more readable.