Creation of the template