Create HMM