added graphs and markov chains