separated HMM models into different classes.