Material stretching

I tried to do the same code for material, but nothing happens… where did i go wrong?