step-by-step implementation of find_words script