modified Coin.java and Driver.java