new class to apply sampling to a large network