Added an application class to hold global state