updated exmaple to use latest version