code samples while learning to develop for iOS