Understanding the Logic Behind Insurance