Insurance is defined both functionally and contractually. Functionally, it is a cooperative device to spread risk over multiple individuals exposed to the same risk. Contractually, it is an agreement where an insurer takes on the risk of a large loss in exchange for regular premium payments. The primary functions of insurance are providing protection from economic loss, collective risk bearing by sharing losses among policyholders, evaluating risks, and providing certainty. Secondary functions include preventing losses, covering larger risks with small capital contributions, and facilitating development of large industries. Insurance also serves as a savings/investment tool, earns foreign exchange, enables risk-free trade, and provides indemnification for unanticipated losses.