Adding sample code for documentation.