simulation code
Merge branch 'master' of github.com:debray/consumer-lossaversion