Introduction to modular smart contract architecture