update examplecode