First version of code without comments