Init with sample.