doc: added the Synopsis code sample