make constructor for Coin class