return (and explain) `function(options)` that returns an application