In reply to Laurie Fleming.

Laurie, thank you for your feedback. I share your distaste for hard-coding. I don't see any problem with you implementing it using hash table or any other way. Please feel free to share your code sample - I would be delighted to see any alternative implementation of the data-driven approach.