added samples for using the native API