adds Templates to Cook
adds some OOP to templates