Perimeter and area of rectangular shapes