added code samples