Messing about in Ruby for educational purposes