private void sell(String command) {
		currentCommand = "sell";
		String[] commandComps = command.split("\\s+");
		if (commandComps.length != 3) {
			sendToUser("Invalid command");
			return;
		}
		if (commandComps[0].equalsIgnoreCase("SELL")
				&& commandComps[1].startsWith("<")
				&& commandComps[1].endsWith(">")
				&& commandComps[2].startsWith("<")
				&& commandComps[2].endsWith(">")) {
			String tickername = commandComps[1].substring(1,
					commandComps[1].length() - 1).toUpperCase();
			int no = 0;
			try {
				no = Integer.valueOf(commandComps[2].substring(1,
						commandComps[2].length() - 1));
			} catch (Exception e) {
				sendToUser("Invalid amount entered. Please enter an integer");
				return;
			}

			Collection results = Writer.sellStock(tickername, user, no, users,
					stocks);
			if (results != null) {
				userStocks = DataReader.getUserStocks();
				stocks = DataReader.getStocks();
				users = DataReader.getUsers();
				user = DataReader.getUserByUsername(user.getUsername(), users);
				this.sendToUser("Sale successful.");
			} else {
				this.sendToUser("Sale unsuccessful. Please cross-check your portfolio");
			}
		} else {
			this.sendToUser("Invalid sell command. Please use SELL <TICKERNAME> <NO>");
		}
	}