Create and run an application