Fundamentals of Acceptance Sampling