added command-line demo