Creation of the domain and the repository