improved the calculator program