- Implemented part of the monte carlo algorithm (untested)