Designed a programa for raw sampling (sample)