import Calculations.*;

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 Client
{

  public static void main (String args[]) 
  {
    try{

      // Create and initialize the ORB
      ORB orb = ORB.init(args, null);
      
      Compute computeRef = ComputeHelper.narrow(orb.string_to_object(args[0]));
      
      // Call the Hello server object and print the results
      System.out.println("Calculation with 1: "+computeRef.executeCalculation(1));
      System.out.println("Greeting response : "+computeRef.tellmeWhoYouAre("Me"));

    
    } catch(Exception e) {
        System.out.println("HelloApplet exception: " + e);
        e.printStackTrace(System.out);
    }  
  }
}

