public static synchronized ArrayList<Stock> addStock(String tickername,
			ArrayList<Stock> stocks) {
		stocks = DataReader.getStocks();
		double price = 0;
		tickername = tickername.toUpperCase();
		try {
			price = PriceUpdater.price(tickername);
		} catch (Exception e) {
			System.out.println("The tickername you entered is invalid");
			return stocks;
		}

		if (price > 0 && !stockExists(tickername, stocks)) {
			Stock newStock = new Stock(tickername, 1000, price);
			stocks.add(newStock);
		}
		writeStockValues(stocks);
		return stocks;
	}