initial working code with Android Studio