add returned values to code examples