Creating and defining a connected application