How to draw a rectangle?