distributed version working on a simple exemple