update calculator demo