building a calculator for COP3503