Added the sample code.