modify an example code