Factored WordStats out into separate class