How to create an application object