private void doWork() throws Exception {
		System.out.println("The word processing server is running.");
		ServerSocket listener = new ServerSocket(9898);
		WordProcessor wp = new WordProcessor();
		try {
			while (true) {
				Socket s = listener.accept();
				log("New connection with client " + " at " + s);
				new InputThread(s, wp).start();
				new OutputThread(s, wp).start();
			}
		} catch (IOException e) {
			log("Error handling client " + ": " + e);
		} finally {
			try {
				listener.close();
				wp.shutdown();
			} catch (IOException e) {
				log("Couldn't close a socket, what's going on?");
			}
			log("Connection with client is " + " closed");
		}
	}