Update example code