refactor DefaultCoinParser to use Coin class