Created the Application class and added SDL support