calcArea function done