layer_stack example migrated to 3.1.