code for the calculator