make the example code to be runnable