finish hw6 CoinBase