Implemented the CoinCalculator.