Add allWords method