Area and perimeter of 2D shapes