try using :constructor &keywords to define templates