made some changes to Main.java and myAdapter.java to make it easier.