modifying the HMM class to create new word classes depending on certain characteristics in the data.