remade the calculator with comments