Sample code for iOS app from 1-day course