update code example