adding sample code for Objective-C and Swiftr