Added Application class just to move things out of main