updated version
code example updated