Added the first version of the code