First Version of code

First Version of code