create a calculator and test it