learning to program in Ruby