Created an order 3 Markov chain class.