Using puts in samples