integrated custom adapter with MainActivity.java