the first example is ready to roll; maybe this can work for an app