models/template.class.php initial commit