4th Exercise from RubyMotion book