calculator passes all tests