Added area and centroid calculations