minor changes in example 1 vs 2
p-step random walk implemented