After reading this article, I modified and implemented it in this blog. You can see it in the right column. This is how I did it.