example of a command-line app using observables