added a code sample