@Override
    public void display(UserInterface ui) {
        if (!variablesWithNewValues.isEmpty()) {
            UserInterface.print("New values were set for variables: ");
            for (String v : variablesWithNewValues.keySet()) {
                UserInterface.print(v + " ");
            }
            UserInterface.println("");
        }
        UserInterface.println("Local variables:");
        int i = 0;
        for (String v : variablesWithOffsets.keySet()) {
            UserInterface.print("  " + v);
            for (int j = 0; j < 30 - v.length(); j++) {
                UserInterface.print(" ");
            }
            UserInterface.println(variableValues.get(i++));
        }
        UserInterface.println("");
    }