This is why old threads are closed - people post questions that barely relate to the OP, hijacking a conversion and making the original discussion hard to follow.
Please start a new thread and ask a question there, though I recommend you not simply ask for a design and how it works. Try to design it yourself and ask us if you have questions about it.