Added drawing of rectangle.