Added source code for the xcode project