updates code example