commit 2 - adding jni code