update to stack example