Adding First version of code