Xtract_samples