You're right, but the topic starter can ask questions after reading the small example. I mean, I just wrote a few lines of code for him and explained it a little bit.

Not sure what I'm doing wrong, however I agree to your point that it might be better if I'd have just given a few guidelines or references to documents.