Moving code for Chapter 1 in preparation of book revisions for iOS7/Xcode 5 update