update write examples