Adding the code and updating the README.md.