How to Create Functions in Solidity Smart Contracts