Start to write the code
Some mods
restored