more clean and classification code
classification of codes and new structure for templates