Learning by demonstration

I am not sure on whether I gave a correct answer to your question ., but I have given an answer as far as I could understand. Please have a look at the answer that I have put in the thread that you have mentioned above and please let me know if you face any issues.