Updating examples to match current api