exercise in monte carlo methods 1692766