Code samples for beginners (Xcode 4)