3rd Exercise from RubyMotion book