Dear Peter, Many thanks for your response and the link to your code! I willl definitely look into it. It's just that I wanted to see if I am able to write the code by myself first, so that I can then compare what I was able to produce to what other produced, but I'll definitely look at it. Thanks again! Sébastien.