pseudocode, initial code & driver test code for get_word
release 3/6 refactor