First version oftemplates done, static templates