Just some Markov chain stuff, for kicks :)