correct all the example code