new corpus class, sentence extended with equals and hashCode