@JAC,
The correct graphic is rather this one:
@_Vijay : You had the general principle in mind but you have to change the outputs.