Simple example (without concurrents)