Your app as a function