add hmm model according to http://en.wikipedia.org/wiki/Hidden_Markov_model#A_concrete_example
replace symbols for state and observation with dedicated trait