RECTANGLE: seems to be fully working.