Added a hidden markov model