Update exmaple codes