With this example everything is global, I think we need a better example, a real one