Modified CoinPurse.java