@Override
    public void visit( ThreeElement threeElement){
    int sum = threeElement.a + threeElement.b + threeElement.c ;
    System.out.println("Adding" + threeElement.a + "+" + threeElement.b + "+" + threeElement.c + "+"+sum + "the total");
    totalSum += sum;
    }