Added fragment classes in mainActivity.java,