From Markov models to evolutionary models