add extends sample to template