Updated code

Added sample code to the repository.