Added an example in resource/doc

Added an example in resource/doc