Explained the code in readme.md