update the stochastic sampling script for the more complicated toy model