Adding Code for Word Detection Example