Stubbed out calculator example from c plus plus textbook