started working on template document class