simple monte carlo method