Create hmm