updated working source code in README.md