Use of templates. Not working,yet.