Revert "remove Sampling, which has been irrelevant for quite a while."

This reverts commit 684183bd9e3f9cfdeec96f1f4df5ad2506f4dc23.