Writte compareWords.