starting first problem written in Ruby.