import Calculations.*;

// HelloServer will use the naming service.
import org.omg.CosNaming.*;

// The package containing special exceptions thrown by the name service.
import org.omg.CosNaming.NamingContextPackage.*;

// All CORBA applications need these classes.
import org.omg.CORBA.*;

public class ComputeImpl extends _ComputeImplBase {

  private int count = 0;

  public int executeCalculation(int i) { 
     System.out.println("Executing calculation with "+i);
     count=count+i;
     return count;
  }
 
  public String tellmeWhoYouAre(String name) {
     System.out.println("Greeting  "+name);
     return "Hello "+name+", I'm the server";
  }

 
}
