beginning native demo code