using binomial model to estimate confidence intervals.