Samples of ruby code