Code added and README.md updated