templating library

Beginins of templating library