moved cli.c to example