Implementing action for adding words.