added examples. ref #4