Minor error in example code

Added flags to make example work as interactive bash shell.