adding intial version of code