Moved CustomListAdapter class from main to a new class, instead of
having a private inner class