markov chains and stuff