adding the main and the model