edited Coin class