Montecarlo method exercise - testing