advanced in template. override and extends template