Rectangle program