added a main class and created the Element class to use in the listview