Adding a print word function.