public void run() {
		System.out.println("run method running.");
		while (true) {
			String userCommand = this.readInputStream();
			System.out.println("user command: " + userCommand);
			String[] command = commandParser(userCommand.toLowerCase().trim());
			if (!command[0].equals("close")) {
				if (currentCommand.equals("")) {
					switch (userCommand) {
					case "close":
						this.closeConnection();
						break;
					case "checkportfolio":
						currentCommand = "checkportfolio";
						this.checkportfolio();
						break;
					case "buy":
						currentCommand = "buy";
						break;
					case "sell":
						currentCommand = "sell";
						break;
					case "follow":
						currentCommand = "follow";
						break;
					default:
						this.unknowCommand(userCommand);
						break;
					}
				} else {
					this.unknowCommand(userCommand);
				}
			} else {
				this.closeConnection();
				break;
			}
		}
	}