example code update