updated calculator example