Thanks for the encouragement. Actually the first version was much more difficult but thanks to some criticism I improved it. XD