Integrated implementation with template delaration to shorten file