refactored introducing CoinValueRecognizer.