Thanks for your tip, I've corrected my post :)
Dear Olivier, It is helpful if you use the the Code Formatting feature as described here: http://community.wolfram.com/groups/-/m/t/270507
If you use that feature, your responders will be able to copy your code and test it without much effort.