implemented learnBaconNumberDistribution