Chapter 5 excercise of RubyMotion iOS Develoment Essentials book