First version code

First version code