Create getword.h

This code were provided by Professor John Carroll.