Creation of Template model