Got the extract_words function to work