http://jamesonquave.com/blog/developing-ios-apps-using-swift-tutorial/ sample code