Sampling example