add Phrase and Word classes