Chapter 4: binomial with sampling