add templates and classes