adding template library