add try-catch calculator