The class MarkovModel  implements a smart approach for generating markov models.