1.5.4 - exercise 1-12: copying input to output one word per line