public class Main {
public static void main(String[] args) {
String formula = "2*x^2 + 3*x + 4";
Expression expression = new Expression(formula);
System.out.println("Formula: " + formula);
System.out.println("Parsed expression: " + expression.toString());
}
}