Implementation of the v3 !
Fixed small error in the doc and example