Update coin.cpp