How to curve rectangle

I am trying to curve a rectangle while still keeping its original shape. I wanted to create a smiley face that connects at both the J and D

Use a line, not a rectangle. Learn how to work with vectors: