I have a source code which answers your question and i mailed it to you.