rewrite app example