insurance is a contract that provides coverage of losses