public void addStock(Stock stock) throws StockAlreadyExistsException,
			PortfolioFullException {
		int countStockSymbol = 0;

		// find the symbol's index and count
		for (int i = 0; i < portfolioSize; i++) {
			if (stocksStatus[i].getSymbol() == stock.getSymbol()) {
				countStockSymbol++;
			}
		}
		if (countStockSymbol == 1) {
			throw new StockAlreadyExistsException(stock.getSymbol());
		}
		if (portfolioSize >= MAX_PORTFOLIO_SIZE) {
			throw new PortfolioFullException();
		}

		stocksStatus[portfolioSize] = new StockStatus(stock.getSymbol(),
				stock.getBid(), stock.getAsk(), stock.getDate(),
				ALGO_RECOMMENDATION.DO_NOTHING, 0);
		portfolioSize++;
	}