I've attached a brilliant example for you. Currently I'm a bit too busy to prepare entire file for you. I can do that when I'm free today evening maybe tomorrow if you find it too hard to build it on your own, analyzing my example.
But as I said my example is really good so it would be good for you If you try to understand it the you should be able to build another cs alone. it's not really complex.
PS. It would be great if you can answer my question about ranking widget ![]()