Creating area and perimeter rectangles