added code sample