smart contract is a piece of code that lives on the blockchain.