Added getArea function