Created 'calculateArea()' function