Vector example in Ruby