first try at markov chaining