update calculator example