public Client(Socket soc, int i, ServerThread h){
        socket = soc;
        index = i;
        level = 1;
        
        handler = h;
        
        log = new Logger();
        
        try {         
            // create input/output streams
            
            in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
            out = new PrintWriter(socket.getOutputStream(), true);

        } catch (IOException ex) {
            log.writeErr("Could not create client input/output streams " + i);
        }
        
        out.println("a"); // response to being accepted
        
        client = new clientThread();
        thread = new Thread(client);
        thread.start();
    }