added stochastic module (much must be done to organize this...