A few samples of code in Ruby (and other languagues)