Inference in hmm example

Great, thank you @fehiepsi! that is so helpful.