The two envelopes method for active learning