Work in markov chain