added comments and cleaned up IntListLottery example