updated docs with example