create split template.class off into template.inc