Exercises in Ruby programming