Created 'calculateArea' function