added CoinPattern Generation