Seperating Adapter class, making the app run