changes made to Gaussian example to handle resized Monte Carlo trials