Moved code to an Xcode project