Separate class for foil generator.
Separate class for template generator