Calculator sample with assert