Markov chain application