wrote 'drawRectangle' script