first version of code
First version of code.