Created the first version of the code