public string InsertCoin(ICoin coin) { decimal monetaryValue = 0; var coinType = coin.getValue(out monetaryValue); if (monetaryValue > 0) { _currentCoinsAmount += monetaryValue; incrementCoinCounter(coinType); } else { _invalid_count++; } return(getCurrentDisplay()); }