initial workings of Montecarlo code from the first exercise of Workshop 4