added demos for methods in Objective-C