added CoinGenerator