Make the example runnable in CLI