Adding getTemplate method