added coinbase funtionality