First Version of MarkovChain