Coin class from groupwork