added a simple code example inside doc file