Change templates to extends