Create template
adding new classes for documents and templates