Changes in MainActivity.java