modified sample code for README.md