Code for the Examples of the "Monte Carlo Methods and Zero Variance Principle" Book Chapter