update the example code