Credit to James for the idea. I just wanted to show one more way to do the same thing. When coding, there are many many ways to accomplish the same thing. Sometimes we can learn new techniques from other people who solve the same challenge a different way.