What is a Markov chain and how would you use one?