adding template and structure