update of the function generating the model of
the different template : for now the generation is simple but it works