Added Word to be Serializable, change wordMap to contain Pair<Word, Integer>