Added the sample code into readme file.