Creating a main Application class