An example from the RubyMotion book by Clay Allsopp.