Example code
Updated example