Simple templating class