moved MyAdapter to its own class