Updated code

Added the sample code to the repository.