First version of code added