updated the Objective-C sample