public Orb(string nameJ) { foreach (string nameK in Names) { if (nameK == nameJ) { Name = nameK; value = StockExchange.getRate(nameK); StockExchange.incCount(nameK); } } }