added main math class