still in chapter 1, did markov chain sampling