update stack example