Squares and rectangles