drawRectangle function added