Samples in ruby