markov chaining setup