g1smd - 11:58 pm on Nov 15, 2012 (gmt 0)
You can only improve if you attempt to learn how it works.
Using any one of the previous couple of thousand examples posted in this forum at least have a go. :)
The linked-to example in an earlier post isn't all that different to what you want to do. It's mostly a substitution operation to get the code how you want it.