fleshed out monte carlo, made sure it was compilable before moving on