added template as a reference.