I recommend marking instance variables like these (word and pos) "final", since this class seems to be meant to be immutable.