Made a first version of the main file