static rectangle program