Add example code
Add update and extra query to example code