Creation of the main solution