updated example with latest versoion