moved application to own class