steps to study markov chains