Code samples from the RubyMotion book