adding Objective-C sample code
adding Swift sample code