Adding code to calculate shape area using visitor pattern.