Modified Coin.java