First iteration of the exercise "Bob" in Ruby