added coinbase code