added code and README file