public void run() {
		updateScreen();
		
		try {
			while ((inputLine = in.readLine()) != null) {
				if (inputLine.startsWith("DN")) {
					// TODO
				}
				else if (inputLine.startsWith("D")) {
					if (inputLine.equals("D"))
						sim.setDisplayText("");
					else
						sim.setDisplayText(inputLine.substring(2, inputLine.length()));
					
					updateScreen(); 
					 
					out.println("DB"+"\r\n");
				}
				
				else if (inputLine.startsWith("T")) {
					out.println("T " + sim.getTara() + " kg "+"\r\n");
					
					sim.setTara();
					
					updateScreen();
				}
				
				else if (inputLine.startsWith("S")) {
					updateScreen();
					
					out.println("S " + sim.getNetto() + " kg " +"\r\n");
				}
				
				else if (inputLine.startsWith("B")) {
					String temp = inputLine.substring(2, inputLine.length());
					
					sim.setBrutto(Double.parseDouble(temp));
					
					updateScreen(); 
					
					out.println("DB"+"\r\n");
				}
				
				else if ((inputLine.startsWith("Q"))) {
					System.out.println("");
					System.out.println("Quitting...");
					
					System.in.close();
					System.out.close();
					
					in.close();
					out.close();
					
					System.exit(0);
				}
			}
		} 
		catch (Exception e) {
			System.out.println("Exception: " + e.getMessage()); 
		}
	}