Text this: Mathematical Models for Optimization of Tariffs in Risky Types of Insurance