Add REPL app lifecycle example