my version of Stroustrup's calculator