@Override
	public void handleClient(ObjectInputStream input, ObjectOutputStream output) {
	
		try {
			while(true){
			   Object obj = input.readObject();
			   
			    if (obj instanceof String) {
			        if ((((String) obj)).equalsIgnoreCase("exit")) {
			            break;
			        }else{
			        	System.out.println("Current obj: "+(String)obj);
			        }
			        
			    }else if (obj instanceof Model){
			    	model = (Model) obj;
			    }else if(obj instanceof Solver){
			    	solver = (Solver) obj;
			    }
			    
				if (model != null && solver != null){	
					Integer val	= new Integer(solver.calculator(model));
					output.writeObject(val);
					model = null;
				}
			}
			
	//		System.out.println(solver.getClass());
			
			
			input.close();
			output.close();
			
		}catch (ClassNotFoundException | IOException e) {
			System.out.println("CLASS OR IO, Nevermore8");
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}