The utility concept applied to the theory of insurance