Simple example 

For concurrents example see FIDDLE