work on the example code