How to bend a rectangle

I am trying to do this: