Basic structure for MonteCarlo scheme